package com.yhui.cloud.configuration;

import com.yhui.cloud.interceptor.FeignRequestInterceptor;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Feign 全局配置
 * <p>
 * Description:
 * </p>
 *
 * @author: luyuhui
 * @create: 2020-03-01 22:03
 * @see: com.yhui.cloud.configuration
 * @version: v1.0.0
 **/
@Configuration
public class FeignRequestConfiguration {
    @Bean
    public RequestInterceptor requestInterceptor() {
        return new FeignRequestInterceptor();
    }
}
